package com.heima.feign.article;

import com.heima.feign.article.fallback.IArticleClientFallback;
import com.heima.model.article.dtos.ArticleDto;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.user.dtos.ArticleInfoDto;
import com.heima.model.user.dtos.LikesBehaviorDto;
import com.heima.model.user.dtos.readBehaviorDto;
import com.heima.model.user.pojos.ApuUerFollow;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "leadnews-article" ,fallback = IArticleClientFallback.class)
public interface IArticleClient {

    @PostMapping("/api/v1/article/save")
    public ResponseResult saveArticle(@RequestBody ArticleDto dto) ;

    @PostMapping("/api/v1/article/dznum")
        public void dznum(@RequestBody LikesBehaviorDto dto);

    @PostMapping("/api/v1/article/ydnum")
    public void ydnum(@RequestBody readBehaviorDto dto);



}
